The indicator needs special styling for the color, but we still
want it to pick shared 'system-status-icon' styling like the
icon size.
https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6008
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2547>
this._handles = new Set();
this._indicator = this._addIndicator();
- this._indicator.set({
- style_class: 'screencast-indicator',
- icon_name: 'media-record-symbolic',
- });
+ this._indicator.icon_name = 'media-record-symbolic';
+ this._indicator.add_style_class_name('screencast-indicator');
controller.connect('new-handle', (o, handle) => {
this._onNewHandle(handle);